import request from '@/utils/request.js'

export function login(data) {
  return request.post('/autojs/api/login', data, {
    noAuth: true
  })
}

export function getUserInfo() {
  return request.post('/autojs/api/userInfo')
}

export function editNickName(data) {
  return request.post('/autojs/api/modifyName', data)
}

//任务列表
export function getTaskPhoneList(data) {
  return request.post('/autojs/api/taskPhones', data)
}

export function addTaskPhone(data) {
  return request.post('/autojs/api/addTaskPhone', data)
}

export function bindOldPhone(data) {
  return request.post('/autojs/api/bindOldPhone', data,{ noVerify: true })
}

export function getIncomes(data) {
  return request.post('/autojs/api/incomes', data)
}
// 首页轮播图26
export function getBanners(data) {
  return request.post('/autojs/api/banners', data)
}
// 错误 10
export function getErrorsApi(data) {
  return request.post('/autojs/api/errors', data)
}
// 去续费 26
export function getRenew(data) {
  return request.post('/autojs/api/renew', data,{ noVerify: true })
}
//发送命令7
export function sendCmd(data) {
  return request.post('/autojs/api/sendCmd', data)
}

//分享收益29
export function incomeRecords(data) {
  return request.post('/autojs/api/incomeRecords', data)
}

//提现
export function withdraw(data) {
  return request.post('/autojs/api/withdraw', data,{ noVerify: true })
}

//21. 微信支付
export function wechatPayment(data) {
  return request.post('/autojs/api/wechatPayment', data)
}

//22. 支付宝支付
export function aliPayment(data) {
  return request.post('/autojs/api/aliPayment', data)
}
// 11. 处理错误
export function handleError(data) {
  return request.post('/autojs/api/handleError', data)
}

// 18. 任务app下载url
export function helperUrl(data) {
  return request.post('/autojs/api/upgrade/helperUrl', data)
}
// 19. 邀请数据/记录
export function inviteData(data) {
  return request.post('/autojs/api/inviteData', data)
}

//notices 新加api
export function notices(data) {
  return request.post('/autojs/api/notices', data)
}

//单个手机任务
export function taskPhone(data) {
  return request.post('/autojs/api/taskPhone', data)
}
//31.有效设备
export function effectPhone(data) {
  return request.post('/autojs/api/effectPhone', data)
}

//27. 推荐列表
export function promoteList(data) {
  return request.post('/autojs/api/promoteList', data)
}

//33.请求单个用户失效信息
export function userExpirePhone(data) {
  return request.post('/autojs/api/userExpirePhone', data)
}

//34.请求单个用户有效信息
export function userEffectPhone(data) {
  return request.post('/autojs/api/userEffectPhone', data)
}

//admin升级
export function upgradeAdmin(data) {
  return request.post('/autojs/api/upgrade/admin', data)
}

//35.绑定银行卡信息
export function bankPayment(data) {
  return request.post('/autojs/api/bankPayment', data,{ noVerify: true })
}
//28. 续费列表
export function renewRecord(data) {
  return request.post('/autojs/api/renewRecord', data,{ noVerify: true })
}

//14. 任务列表
export function taskList(data) {
  return request.post('/autojs/api/taskList', data)
}

//13. 任务列表修改提交
export function selectTask(data) {
  return request.post('/autojs/api/selectTask', data)
}

//15. 返回app列表
export function appList(data) {
  return request.post('/autojs/api/appList', data)
}

//16. 修改保留app列表
export function keepApp(data) {
  return request.post('/autojs/api/keepApp', data)
}

// 12. 更新手机信息
export function updateTaskPhone(data) {
  return request.post('/autojs/api/updateTaskPhone', data)
}
//36.提现记录
export function withdrawRecord(data) {
  return request.post('/autojs/api/withdrawRecord', data)
}

//37.修改密码
export function modifyPwd(data) {
  return request.post('/autojs/api/modifyPwd', data,{ noVerify: true })
}